package com.example.bootstrapangularjsdemo.controller;

import com.example.bootstrapangularjsdemo.pojo.Person;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description
 * @auther lijiewei
 * @date 2021/12/11 16:58
 */
@RestController
public class PersonController {

    @RequestMapping(value="/search", produces={MediaType.APPLICATION_JSON_VALUE})
    public Person search(String personName) {
        return new Person(personName, 32, "hefei");
    }
}
